GBML manual / Paths

path_pos

How far along the current path this instance is, from 0 to 1.

Syntax

path_pos: real

Description

How far along the current path this instance is, from 0 (the start) to 1 (the end) - the same 0..1 range path_x_at/path_y_at take as their own pos argument.

Example

var past_halfway = (path_pos > 0.5);

Records whether the walker is past the halfway point of whatever path it is currently following.

See also: path_x_atpath_y_atpath